package com.ruibang.glass.common.constants;

import java.time.format.DateTimeFormatter;

public class Constants {

    public static final String UNIX_PATH_REGEX = "^(/[^/]+)+$";

    /***
     * 符号
     */
    public enum SpecialSign {
        // 下划线
        UNDERLINE("_"),

        // 点
        POINT("."),

        // 左斜线
        BACKSLASH("\\"),

        // 右斜线
        RIGHTSLASH("/"),

        // 单引号
        SINGLEQUOTES("'"),

        // 冒号
        COLON(":"),

        // 冒号
        COMMA(","),

        // 左括号
        LEFTBRACKET("("),

        // 右括号
        RIGHTBRACKET(")"),

        // 空格
        SPACE(" "),

        // 左中括号
        LEFTSQUARE("["),

        // 右中括号
        RIGHTSQUARE("]");
        // 成员变量
        private String name;

        // 构造方法
        SpecialSign(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }
    }


    /**
     * 根据opinion-token获取用户代码
     */
    public static final String REDIS_OPINION_USER_TOKEN = "OPINION_USER_TOKEN_";



    public static final String REDIS_OPINION_DEPARTMENT_INFO = "OPINION_DEPARTMENT_INFO";

    public static final String REDIS_KEY_USERID = "REDISKEY_USERID_";

    public static final String ZERO_STR = "0";
    public static final String ONE_STR = "1";
    public static final String TWO_STR = "2";
    public static final String THREE_STR = "3";
    public static final String FOUR_STR = "4";
    public static final String FIVE_STR = "5";
    public static final String SIX_STR = "6";
    public static final String SEVEN_STR = "7";
    public static final String EIGHT_STR = "8";
    public static final String NINE_STR = "9";
    public static final String TEN_STR = "10";
    public static final String ELEVEN_STR = "11";
    public static final String TWELVE_STR = "12";
    public static final Integer ZERO_INT = 0;
    public static final Integer ONE_INT = 1;
    public static final Integer TWO_INT = 2;
    public static final Integer THREE_INT = 3;
    public static final Integer FOUR_INT = 4;
    public static final Integer FIVE_INT = 5;
    public static final Integer SIX_INT = 6;
    public static final Integer SEVEN_INT = 7;
    public static final Integer EIGHT_INT = 8;
    public static final Integer NINE_INT = 9;
    public static final Integer TEN_INT = 10;
    public static final Integer ORDER_NO_SERIAL_NUMBER_UP = 9999;

    public static final String AUTHORIZATION_HEADER = "token";

    public static final String RAW_MATERIAL_RECEIVE_SERIAL_NUMBER = "raw_material_receive_serial_number";


    public static final String SYNCHRONOUS_PROGRESS = "synchronousProgress";

    public static final String USER_OPERATE_CODE = "user_operate_code_%s";

    public static final String OPERATE_CODE_SALT = "glass@2020";

    public static final String PING_METHOD_ = "PING_METHOD_%s";

    public static final String DATE_TIME_FORMATTER_STR = "yyyy-MM-dd HH:mm:ss";

    public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern(DATE_TIME_FORMATTER_STR);



    /***************流程中的变量key**start****************/

    public static final String PROCESS_INSTANCE_STARTER_USER_ID="startUserId";

    public static final String PROCESS_INSTANCE_BUSINESS_KEY="businessKey";

    public static final String PROCESS_INSTANCE_MENU_ID="menuId";

    public static final String PROCESS_INSTANCE_STATUS="status";

    public static final String BUSINESS_FIELD_NAME="field_name";

    /****************流程中的变量key**end******************/

    /****************文件格式常量***********************/
    public static final String FILE_TYPE_PDF = "pdf";
    public static final String FILE_TYPE_XLSX = "xlsx";
    public static final String FILE_TYPE_XLSM = "xlsm";
    public static final String FILE_TYPE_XLS = "xls";
    public static final String FILE_TYPE_DAT = "DAT";
   /****************文件格式常量***********************/


   /**结束步骤常量*/
   public static final String FINISH_NODE_KEY = "FINISHED";
}
